package org.jeecg.modules.engineering.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.engineering.entity.EquipCollectItem;
import org.jeecg.modules.engineering.entity.EquipCollectTrigger;
import org.jeecg.modules.engineering.entity.EquipCollectItemDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 每个小区的采集项
 * @Author: jeecg-boot
 * @Date:   2019-09-12
 * @Version: V1.0
 */
public interface IEquipCollectItemDetailService extends IService<EquipCollectItemDetail> {

	/**
	 * 添加一对多
	 * 
	 */
	void saveMain(EquipCollectItemDetail equipCollectItemDetail, List<EquipCollectTrigger> equipCollectTriggerList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	void updateMain(EquipCollectItemDetail equipCollectItemDetail, List<EquipCollectTrigger> equipCollectTriggerList);
	
	/**
	 * 删除一对多
	 */
	void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	void delBatchMain(List<String> idList);


	void removeFromRedis(String id);

	void removeFromRedis(EquipCollectItemDetail entity);

	EquipCollectItemDetail getFromRedisByOtherKey(String key);

	EquipCollectItemDetail getFromRedisById(String id);

    Result<String> refreshToRedis();

    List<EquipCollectItemDetail> queryListByProjectId(String projectId);

    boolean checkHave(String projectId, String itemId, String id);
}
